package com.zyh.zhukang.demand.VO;

/**
 * 作者:zhuyunhao
 * 时间:2020/1/16 0016 14:23
 */
public class JsonResultVO {
    private String code;//状态码
    private String desc;//状态描述
    private Object data;

    public JsonResultVO() {
    }


    public static JsonResultVO createSuccessJsonResult(Object data){
        JsonResultVO vo = new JsonResultVO();
        vo.code = "200";
        vo.data = data;
        return vo;
    }

    public static JsonResultVO createFailJsonResult(String code,String desc){
        JsonResultVO vo = new JsonResultVO();
        vo.code = code;
        vo.desc = desc;
        return vo;
    }
}
